<?php
header("Content-type:text/html;charset=utf-8");
session_start();
$link = mysql_connect('localhost','root','');
if(!$link){
	echo '连接数据库服务器失败';
	exit;
}

$db = mysql_select_db('cms');
if (!$db) {
	die('连接数据库服库失败');
}

define('BASE_URL','http://localhost/cms/');
mysql_query('set names utf8');

include_once('protected/lib/common.fun.php');
include_once('protected/lib/db.fun.php');
include_once('protected/lib/category.fun.php');